package com.spring.iosservice.web.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.spring.iosservice.web.model.BabyCourseVideo;
import com.spring.iosservice.web.model.CheckUser;
import com.spring.iosservice.web.model.CourseBooks;
import com.spring.iosservice.web.model.CourseImage;
import com.spring.iosservice.web.model.StudenetAndComment;
import com.spring.iosservice.web.model.StudentList;
import com.spring.iosservice.web.model.TeacherCourse;
import com.spring.iosservice.web.model.TeacherVideo;

/**
 * Created by wojunyu on 2015/7/26.
 */

public interface IosQuestService {
    /**
     * 获取8元每一元的题目
     * @param type_id
     * @return
     */
    List<TeacherCourse> getTeacherCousre(String t_user_id ,String course_time,String course_time_end,String state,String get_all,String businessTypeCode,String productCode);
    
    Map<String,Object> getTeacherCareClass(String t_user_id, String productCode,
			String begin_time, String end_time, String state, String token) throws Exception;
    
    Map<String,Object> getTeacherAllCourse(String t_user_id, String productCode,
			String begin_time, String end_time, String state, String token) throws Exception;
    
    List<StudentList> getStudenetList(String course_open_detail_id,String unSignOff);
    
    List<StudentList> getStudenetListByClassID(String classId,String unSignOff);
    
    List<StudenetAndComment> getStudenetAndCommentList(String course_open_detail_id);
    
    List<CourseBooks> getCousreBooks(String s);
    List<BabyCourseVideo> getBabyCourseSpec(String user_id,String baby_id,String course_open_detail_id );
    List<TeacherVideo> getTeacherVideo(String course_video_id );
    
    List<CourseImage> getCourseImage(String course_image_id);
    
    void commitComments(String  t_user_id,String course_videos_id,String course_baby_comments);
    HashMap<String, Object> commitCourseImageComments(String user_id,String user_type,String user_name,String course_image_id,String course_baby_comments);
    List<CheckUser> checkUser(String  t_user_id);
    int insertVideos(Map<String,Object> m);
    
    int insertCourseImages(Map<String,Object> m);
    
    int updateTeacher(String t_user_id,String name,String address,String birthday,String age,String sex);
    int updateTeacherImage(String t_user_id, String image_src,String root);
    int updateTeacherImage(String t_user_id, String image_src);
    
    int updateTeacherPassword(String t_user_id,String old_password,String new_password);
    
    int checkFileToken(Map<String,Object> m);
    int checkImageFileToken(Map<String, Object> m);
    int updateVideoPhoto(Map<String,Object> m,String root);
    String queryVideosPhoto(String id);
    
    Map<String, Object> teacherCommentBaby(String token,String commet,
			String course_open_detail_id,String c_family_member_id,String baby_name,String teacher_name)
			throws Exception ;
    
    
    Map<String, Object> teacherCommentCourse(String token,String commet,
			String course_open_detail_id,String teacher_name)
			throws Exception;
    
    
    Map<String, Object> getTeacherCommentBabyList(String token,String course_open_detail_id,String c_user_id,String page_size,
			String page_index,String skip,String rows) throws Exception ;
    Map<String, Object> getTeacherCommentBabyListNew(String token,String course_open_detail_id,String c_user_id,String page_size,
			String page_index,String skip,String rows) throws Exception;
    
    
    
    Map<String, Object> getTeacherCommentCourseList(String token,String course_open_detail_id,String page_size,
			String page_index,String skip,String rows) throws Exception;
    Map<String, Object> getTeacherCommentCourseListNew(String token,String course_open_detail_id,String page_size,
			String page_index,String skip,String rows) throws Exception;
    
    Map<String, Object> getParentCommentCourseList(String token,String course_open_detail_id,String page_size,
			String page_index,String skip,String rows) throws Exception;
    Map<String, Object> getParentCommentCourseListNew(String token,String course_open_detail_id,String page_size,
			String page_index,String skip,String rows) throws Exception;
    
    Map<String, Object> createIOSPhotoJournal(String url,String ossKey,String babys);
    Map<String, Object> createIOSVideoJournal(String videoID,String ossKey,String babys) ;
	List<StudentList> getProStudenetList(String productId, String unSignOff);
	List<StudentList> getCareStudenetList(String care_class_id, String unSignOff);
    
}
